#pragma once
#include "Object.h"
#include "MoveObject.h"
class Box;
#include <d3dx9.h>
#include "GameDefine.h"


class Bullet: public Object, public MoveObject
{		
protected:
	float _angle;
	float _range;
	//dung de xac dinh doi tuong ban ra
	ObjectType _parentType;
	BULLET_ID _id;
public:	
	
	virtual void init(BULLET_ID id);
	
	void loaded(ObjectType parent,D3DXVECTOR2 pos, float angle);
	
	virtual void update();
	
	void render();
	
	bool hasLife();
	Bullet();
	BULLET_ID getType();
	~Bullet();
};

